import App from './App'
import MusicHead from '@/components/MusicHead/MusicHead.vue'
// #ifndef VUE3
import Vue from 'vue'
import store from "@/store/store.js"

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App,
    store
})
app.$mount()
// #endif
Vue.component('MusicHead',MusicHead)

Vue.filter('Countformat', (count) => {
	if(count >= 100000 && count < 99999999){
		count /= 10000
		return count.toFixed(1) + '万'
	}else if(count >= 100000000 ){
		count /= 100000000
		return count.toFixed(1) + '亿'
	}else{
		return count
	}
})

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif